package com.learn.xueer.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.learn.xueer.R
import com.learn.xueer.data.model.bean.MissionInfo

class WorkAliAdapter(data: MutableList<MissionInfo>) :
    BaseQuickAdapter<MissionInfo, BaseViewHolder>(
        R.layout.item_mission_info, data
    ) {
    override fun convert(helper: BaseViewHolder, item: MissionInfo) {
        if (item.title!="明细"){
            helper.setText(R.id.tv_title, item.title)
            helper.setText(R.id.tv_num, "${item.num}")
            helper.setText(R.id.tv_done_lv, "${item.done_lv}%")
            helper.setText(R.id.tv_score_lv, "${item.score_lv}%")
        }
    }

}